package com.intelligent.service;

import com.intelligent.pojo.ProductionReporting;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
* @author lenovo
* @description 针对表【production_reporting(生产报工表)】的数据库操作Service
* @createDate 2025-09-05 09:15:29
*/
public interface ProductionReportingService extends IService<ProductionReporting> {

    IPage<Map<String, Object>> pageWithJoin(
            Page<Map<String, Object>> page,
            String reportNo,
            String processName,
            String processCode,
            String relatedWorkOrder,
            String username,
            String workGroup,
            Integer qcStatus,
            String startDate,
            String endDate
    );

    Map<String, Object> getDetailById(Long id);

    boolean addProductionReporting(ProductionReporting productionReporting);

    boolean updateProductionReporting(ProductionReporting productionReporting);

    boolean deleteById(Long id);
}
